#ifndef ENROLLWINDOW_H
#define ENROLLWINDOW_H

#include <QWidget>
#include <QSqlQuery>
#include <QSql>
#include <QSqlDatabase>
#include <QLineEdit>
#include <QAction>
#include <QIcon>

#include <loginwindow.h>
namespace Ui {
class enrollWindow;
}

class enrollWindow : public QWidget
{
    Q_OBJECT

public:
    explicit enrollWindow(QWidget *parent = 0);
    ~enrollWindow();

    void initLoginWindow();
    void connectDB(); //连接数据库

private slots:
    void on_closeButton_clicked();

    void on_enrollpushButton_clicked();
    void togglePasswordVisibility();

    void on_returnpushButton_clicked();

signals:
     void returnloginwindow();
private:
    Ui::enrollWindow *ui;

    QAction *displayPasswordAction;  // 切换密码显示/隐藏的 QAction
    QIcon eyeOpenIcon;  // 显示密码的图标
    QIcon eyecloseIcon;
    bool m_bVisible;
};

#endif // ENROLLWINDOW_H
